<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="bean.Donate"%>
<%@page import="bean.News"%>
<%@page import="bean.Funding_information"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
	<head>
		<title>山东工商学院教育基金会</title>
		<link rel="shortcut icon" href="images/titleico.ico" />
		<link href="css/myA.css" type="text/css" rel="stylesheet">
		<link href="css/myCss.css" type="text/css" rel="stylesheet">
	</head>
	<body>

		<%
			ArrayList<Donate> donate_list = (ArrayList<Donate>) session
					.getAttribute("donate_list");
			ArrayList<News> news_list = (ArrayList<News>) session
					.getAttribute("news_list");
			ArrayList<Funding_information> funding_information_list = (ArrayList<Funding_information>) session
					.getAttribute("funding_information_list");
			if (donate_list == null) {
				response.sendRedirect("donate?page=index.jsp");
			} else if (news_list == null) {
				response.sendRedirect("news?page=index.jsp");
			} else if(funding_information_list == null) {
				response.sendRedirect("funding_information?page=index.jsp");
			}
		%>
		<jsp:include page="top.jsp"></jsp:include>

		<div id="set1">
			<table width="970" align="center" cellpadding="6" cellspacing="0">
				<tr>
					<td align="left">
						<a href="photo_news.jsp"><img src="images/tpxw.gif" border="0"  width="300"/></a>
					</td>
					<td align="center">
						<a href="news.jsp"><img src="images/xwdt.gif" border="0"  width="300"/></a>
					</td>
					<td align="right">
						<a href="news_d.jsp"><img src="images/zzxx.gif" border="0"  width="300"/></a>
					</td>
				</tr>
			</table>
		</div>
		
		<table width="960" align="center" cellpadding="0" cellspacing="0"
			height="400" id="table1">
			<tr>
				<td valign="top">
					<table cellpadding="0" cellspacing="0" height="300">
						<tr>
							<td colspan="3" align="left" style="padding-left: 3">
<!--								<img src="images/adv3.jpg" width="295" height="200" />-->
								<jsp:include page="indexPicture.jsp"></jsp:include>
							</td>
						</tr>
						<tr>
							<td style="padding-top: 15">
								<marquee direction="up" onmouseover="stop()" onmouseout="start()"
									scrollamount="2" height="200">
									<table cellpadding="2" cellspacing="0" width="298">
										<c:forEach items="${donate_list}" var="donate">
											<tr style="font-size: 10">
												<td>
													<a href="thanks.jsp" class="style1"
														title="${donate.donate_name}">${donate.donate_name}</a>
												</td>
												<td align="center">
													${donate.donate_price }
												</td>
												<td align="right">
													${donate.donate_date }
												</td>
											</tr>
										</c:forEach>
									</table>
								</marquee>

							</td>
						</tr>


					</table>
				</td>
				<td valign="top" style="padding-left: 35">
					<table cellpadding="5" cellspacing="0" width="300">
						<c:forEach var="news" items="${news_list1}">
							<tr>
								<td>
									<a href="newsshow.jsp?id=${news.id}" class="style1"
										title="${news.news_title}">·${news.news_title}[${news.news_date }]</a>
								</td>
							</tr>
						</c:forEach>
						<tr>
							<td style="padding-left: 220; font-size: 12px">
								<a href="news.jsp" class="style1">更多&gt;&gt;</a>
							</td>
						</tr>
					</table>
				</td>
				<td valign="top" style="padding-left: 35">
					<table cellpadding="5" cellspacing="0" width="300">
						<c:forEach items="${funding_information_list1}"
							var="funding_information">
							<tr>
								<td>
									<a href="newsshow_d.jsp?id=${funding_information.id}" class="style1" title="${funding_information.donate_title}">·${funding_information.donate_title}[${funding_information.funding_information_date
										}]</a>
								</td>
							</tr>
						</c:forEach>
						<tr>
							<td style="padding-left: 220; font-size: 12px">
								<a href="news_d.jsp" class="style1">更多>></a>
							</td>
						</tr>

					</table>
				</td>
			</tr>
		</table>
		
		<table width="960" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td width="10">&nbsp;</td>
			</tr>
		</table>

			<table width="960" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left">
						<a href="#"><img alt="" src="images/xglj.gif" width="220" border="0"> </a>
					</td>
					<td align="center">
						<a href="#"><img alt="" src="images/gzjd.gif" width="220" border="0">  </a>
					</td>
					<td align="center">
						<a href="#"><img alt="" src="images/xzzq.gif" width="220" border="0"> </a>
					</td>
					<td align="right">
						<a href="about.jsp?id=6"><img alt="" src="images/llwm.gif" width="220" border="0"> </a>
					</td>
				</tr>
			</table>
			
		<table width="960" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td height="20"><div id="showInfo"></div></td>
			</tr>
		</table>	
		
		<jsp:include page="bottom.jsp"></jsp:include>
		
		<%
			if(donate_list != null && news_list != null && funding_information_list != null ) {
				session.removeAttribute("donate_list");
				session.removeAttribute("news_list");
				session.removeAttribute("funding_information_list");
			}
		%>
	</body>
</html>




